package mspbots.teams.data.core.users;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

/**
 * GroupsController
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/9/28
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("users/{tenantId}")
public class UsersController {

    private final UsersServiceImpl usersService;

    @GetMapping("find")
    public Flux<User> find(@PathVariable Long tenantId) {
        return this.usersService.find(tenantId);
    }
}
